
clear;

N40_T04T30P=zeros(4,2);
N40_T04T30N=zeros(4,2);
N40_T04T10P=zeros(4,2);
N40_T04T10N=zeros(4,2);
N40_T10T20P=zeros(4,2);
N40_T10T20N=zeros(4,2);
N40_T20T30P=zeros(4,2);
N40_T20T30N=zeros(4,2);

for kk=1:4
if kk==1; load job1108_Y01N40_T04T30P; end
if kk==2; load job1108_Y12N40_T04T30P; end
if kk==3; load job1108_Y03N40_T04T30P; end
if kk==4; load job1108_Y02N40_T04T30P; end
N40_T04T30P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T04T30N; end
if kk==2; load job1108_Y12N40_T04T30N; end
if kk==3; load job1108_Y03N40_T04T30N; end
if kk==4; load job1108_Y02N40_T04T30N; end
N40_T04T30N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T04T10P; end
if kk==2; load job1108_Y12N40_T04T10P; end
if kk==3; load job1108_Y03N40_T04T10P; end
if kk==4; load job1108_Y02N40_T04T10P; end
N40_T04T10P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T04T10N; end
if kk==2; load job1108_Y12N40_T04T10N; end
if kk==3; load job1108_Y03N40_T04T10N; end
if kk==4; load job1108_Y02N40_T04T10N; end
N40_T04T10N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T10T20P; end
if kk==2; load job1108_Y12N40_T10T20P; end
if kk==3; load job1108_Y03N40_T10T20P; end
if kk==4; load job1108_Y02N40_T10T20P; end
N40_T10T20P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T10T20N; end
if kk==2; load job1108_Y12N40_T10T20N; end
if kk==3; load job1108_Y03N40_T10T20N; end
if kk==4; load job1108_Y02N40_T10T20N; end
N40_T10T20N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T20T30P; end
if kk==2; load job1108_Y12N40_T20T30P; end
if kk==3; load job1108_Y03N40_T20T30P; end
if kk==4; load job1108_Y02N40_T20T30P; end
N40_T20T30P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N40_T20T30N; end
if kk==2; load job1108_Y12N40_T20T30N; end
if kk==3; load job1108_Y03N40_T20T30N; end
if kk==4; load job1108_Y02N40_T20T30N; end
N40_T20T30N(kk,:)=[Tn_CvM,p_CvM];
end

N50_T04T30P=zeros(4,2);
N50_T04T30N=zeros(4,2);
N50_T04T10P=zeros(4,2);
N50_T04T10N=zeros(4,2);
N50_T10T20P=zeros(4,2);
N50_T10T20N=zeros(4,2);
N50_T20T30P=zeros(4,2);
N50_T20T30N=zeros(4,2);

for kk=1:4
if kk==1; load job1108_Y01N50_T04T30P; end
if kk==2; load job1108_Y12N50_T04T30P; end
if kk==3; load job1108_Y03N50_T04T30P; end
if kk==4; load job1108_Y02N50_T04T30P; end
N50_T04T30P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T04T30N; end
if kk==2; load job1108_Y12N50_T04T30N; end
if kk==3; load job1108_Y03N50_T04T30N; end
if kk==4; load job1108_Y02N50_T04T30N; end
N50_T04T30N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T04T10P; end
if kk==2; load job1108_Y12N50_T04T10P; end
if kk==3; load job1108_Y03N50_T04T10P; end
if kk==4; load job1108_Y02N50_T04T10P; end
N50_T04T10P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T04T10N; end
if kk==2; load job1108_Y12N50_T04T10N; end
if kk==3; load job1108_Y03N50_T04T10N; end
if kk==4; load job1108_Y02N50_T04T10N; end
N50_T04T10N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T10T20P; end
if kk==2; load job1108_Y12N50_T10T20P; end
if kk==3; load job1108_Y03N50_T10T20P; end
if kk==4; load job1108_Y02N50_T10T20P; end
N50_T10T20P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T10T20N; end
if kk==2; load job1108_Y12N50_T10T20N; end
if kk==3; load job1108_Y03N50_T10T20N; end
if kk==4; load job1108_Y02N50_T10T20N; end
N50_T10T20N(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T20T30P; end
if kk==2; load job1108_Y12N50_T20T30P; end
if kk==3; load job1108_Y03N50_T20T30P; end
if kk==4; load job1108_Y02N50_T20T30P; end
N50_T20T30P(kk,:)=[Tn_CvM,p_CvM];

if kk==1; load job1108_Y01N50_T20T30N; end
if kk==2; load job1108_Y12N50_T20T30N; end
if kk==3; load job1108_Y03N50_T20T30N; end
if kk==4; load job1108_Y02N50_T20T30N; end
N50_T20T30N(kk,:)=[Tn_CvM,p_CvM];
end


Labela={'Tn','P-value','Tn','P-value','Tn','P-value','Tn','P-value'};
Labelb={'earny4','earnq16','hrswq16','work208'}; 

mat2lat ([N40_T04T30P,N40_T04T30N,N50_T04T30P,N50_T04T30N],...
                 'Table4a_T04T30.tex','columnlabels',Labela,...
                 'rowlabels',Labelb,'format','%2.3f','size','footnotesize');           
mat2lat ([N40_T04T10P,N40_T04T10N,N50_T04T10P,N50_T04T10N],...
                 'Table4b_T04T10.tex','columnlabels',Labela,...
                 'rowlabels',Labelb,'format','%2.3f','size','footnotesize');       
mat2lat ([N40_T10T20P,N40_T10T20N,N50_T10T20P,N50_T10T20N],...
                 'Table4c_T10T20.tex','columnlabels',Labela,...
                 'rowlabels',Labelb,'format','%2.3f','size','footnotesize');       
mat2lat ([N40_T20T30P,N40_T20T30N,N50_T20T30P,N50_T20T30N],...
                 'Table4d_T20T30.tex','columnlabels',Labela,...
                 'rowlabels',Labelb,'format','%2.3f','size','footnotesize'); 


    